import request from '@/utils/request'
/**
 * 列表
 * @returns
 */
export function GetListAPI(params) {

    return request({
        url: '/web/safety/check/list',
        method: 'GET',
        params
    })
}



/**
 * 
 * @param {*} data 
 * 新增
 */
export function AddDataAPI(data) {
    return request({
        url: '/web/safety/check',
        method: 'POST',
        data
    })
}
/**
 * 回显
 */
export function GetViewAPI(data) {
    return request({
        url: '/web/safety/check/' + data,
        method: 'GET',


    })
}

/**
 * 修改
 * @param {*} data 
 * @returns 
 */
export function EditDataAPI(data) {
    return request({
        url: '/web/safety/check',
        method: 'PUT',
        data
    })
}

// 删除
export function DelDataAPI(data) {
    return request({
        url: '/web/safety/check/' + data,
        method: 'DELETE'
    })
}

